package com.es.www.simpleFactory;

/**
 * @Created by michangtao
 * @Date 2022/4/28 15:15
 * @Description
 */
public class Singleton1 {

    private Singleton1() {
        System.out.println("构建了singleton对象");
    }

    private static Singleton1 instance = new Singleton1();

    public static Singleton1 getInstance() {
        return instance;
    }

    public static void createString(){
        System.out.println("调用了方法");
    }
}
